/**
 * 
 */
package com.rhf.ui.gwt.client.top;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

/**
 * @author fsau
 *
 */
public class TopPanel extends Composite {

	private static TopPanelUiBinder uiBinder = GWT.create(TopPanelUiBinder.class);

	interface TopPanelUiBinder extends UiBinder<Widget, TopPanel> {
	}

	public TopPanel() {
		initWidget(uiBinder.createAndBindUi(this));
	}


	  @UiField Anchor seDeconnecterLien;
	  @UiField Anchor aProposLien;

	  @UiHandler("aProposLien")
	  void onAProposClicked(ClickEvent event) {

	    AProposDialog aProposDialog = new AProposDialog();
	    aProposDialog.show();
	    aProposDialog.center();
	    
	  }

	  @UiHandler("seDeconnecterLien")
	  void onSeDeconnecterClicked(ClickEvent event) {
	    Window.alert("// TODO :: ...");
	  }

}
